<layout name="../../../Resource/master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">添加商品品牌</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">添加商品品牌</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">添加商品品牌</header>
            <div class="panel-body">

                <form action="{:U('Common/sort')}" method='post'>
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>品牌ID</th>
                            <th>品牌名称</th>
                            <th>LOGO</th>
                            <th>排序</th>
                            <th>是否热门</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name='brand' item='v'>
                            <tr class="info">
                                <td>{$v.bid}</td>
                                <td>{$v.bname}</td>
                                <td>
                                    <img src="__ROOT__/Uploads/{$v['logo']}" alt="" />
                                </td>
                                <td>
                                    <input type="text" name='{$v.bid}' value='{$v.bsort}'/>
                                </td>
                                <td>
                                    <if condition='$v["hot"]'>是</if>
                                </td>
                                <td>
                                    <a href="{:U('Brand/add',['bid'=>$v['bid']])}" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
                                    <a href="{:U('Brand/del',['bid'=>$v['bid']])}" class="btn btn-danger"><i class="icon-trash icon-white"></i>删除</a>
                                </td>
                            </tr>
                        </foreach>
                        <tr>
                            <td colspan='6' align='center'>
                                <input type="hidden" name='table' value='brand'/>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <input type="submit" value='排序' class="btn btn-success" />
                </form>

            </div>
        </section>
    </div>
</div>
<script>
    function controller($scope, $, _) {
    }
</script>
